package print;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @classname:Teacher
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/5 21:33
 * @version: 0.1
 * @since:1.8
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class Teacher extends Interface{
    private int age;
    private String name;

    @Override
    public void showInfo() {
        System.out.println("老师的年龄"+age+"老师的姓名"+name);
    }
}
